package com.woniuxy.educationplatform.service.impl;

import com.woniuxy.educationplatform.bean.RefundBean;
import com.woniuxy.educationplatform.mapper.RefundMapper;
import com.woniuxy.educationplatform.service.IRefoundService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RefundServiceImpl implements IRefoundService {
    @Resource
    private RefundMapper refundMapper;

    @Override
    public int add(RefundBean refundBean) {
        return refundMapper.add(refundBean);
    }

    @Override
    public RefundBean finfByOrderId(Long id) {
        return refundMapper.findByOrderId(id);
    }
}
